<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0,user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>baidu</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        html {
            background: #fff;
            font-size: 12px;
            height: 100%;
            width: 100%;
        }

        body {
            color: #666;
            font-family: arial;
            font-size: 14px;
            height: 100%;
            text-align: left;
            width: 100%;
        }

        li {
            list-style: none;
        }

        img {
            border: none;
        }

        a,
        a:active,
        a:visited,
        a:focus,
        a:hover,
        button,
        button:active,
        button:visited {
            color: #666;
            text-decoration: none;
            -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
        }

        h1,
        h2,
        h3,
        h4,
        h5,
        h6 {
            font-size: 20px;
            font-weight: normal;
        }

        .clr {
            overflow: hidden;
            zoom: 1;
        }

        a:focus {
            text-decoration: none;
        }

        nav {
            box-sizing: border-box;
            height: 55px;
            padding: 7px 0 0 10px;
            width: 100%;
        }

        h1,
        h1 img {
            width: 101px;
        }

        h1,
        .src,
        .l,
        .list_pics li,
        .t_list li,
        .s_tab li {
            float: left;
        }

        .content {
            margin: 0 70px;
            padding: 0 0 30px;
            width: 1120px;
        }

        .src,
        .srcs {
            height: 32px;
            width: 538px;
        }

        .src {
            border: 1px solid #b6b6b6;
            height: 32px;
            margin: 0 0 0 10px;
            position: relative;
        }

        .srcs {
            border: none;
            font: 16px/18px arial;
            padding: 0 0 0 8px;
        }

        .srcb {
            background: #3385ff;
            border: 1px solid #2d78f4;
            color: #fff;
            font-size: 14px;
            height: 34px;
            letter-spacing: 1px;
            position: absolute;
            right: -100px;
            top: -1px;
            width: 100px;
        }

        .s_tab {
            background: #f8f8f8;
            border-top: 1px solid #ebebeb;
            height: 38px;
            line-height: 36px;
        }

        .t_list {
            float: right;
            margin: 11px 10px 5px 0;
        }

        .t_list li {
            margin: 0 8px;
        }

        .t_list a {
            text-decoration: underline;
        }

        .t_list a span {
            background: url('img/11.png') no-repeat 0 0;
            background-position: -408px -144px;
            display: inline-block;
            height: 14px;
            left: 1px;
            position: relative;
            top: 3px;
            width: 14px;
        }

        .s_tab {
            box-sizing: border-box;
            padding: 0 120px;
        }

        .s_tab li,
        .s_tab a {
            display: block;
            text-align: center;
            width: 54px;
        }

        .s_tab a {
            height: 35px;
        }

        .s_tab .active {
            border-bottom: 2px solid #38f;
            font-weight: 700;
        }

        .result {
            color: #999;
            font-size: 12px;
            line-height: 42px;
            padding: 0 0 0 120px;
            position: relative;
            width: 540px;
        }

        .result span {
            position: absolute;
            right: 0;
        }

        .result span::before {
            background: url('img/11.png') no-repeat 0 0;
            background-position: -864px -144px;
            content: '';
            height: 14px;
            left: -14px;
            position: absolute;
            top: 14px;
            width: 14px;
        }

        .l {
            padding: 0 0 0 50px;
            width: 540px;
        }

        .r {
            border-left: 1px solid #e1e1e1;
            float: right;
            padding: 0 0 0 18px;
            width: 384px;
        }

        .t {
            color: #333;
            font-weight: 700;
            font-size: 15px;
            line-height: 1.29;
            margin-bottom: 10px;
            position: relative;
        }

        .more {
            position: absolute;
            right: 0;
        }

        .more a,
        .more i,
        .more b {
            display: inline-block;
            vertical-align: middle;
        }

        .more i,
        .more b {
            background: url('img/9.png') no-repeat;
            height: 14px;
            position: relative;
            width: 14px;
        }

        .more i {
            background-position: -816px -144px;
        }

        .more b {
            background-position: -1032px -168px;
        }

        .more a {
            background: #d2d2d2;
            border-radius: 100%;
            height: 4px;
            margin: 0 3px;
            width: 4px;
        }

        .more .active {
            background: #777;
        }

        .list_pic {
            margin: 0 0 15px;
        }

        .list_pic li {
            height: 150px;
            margin: 0 0 10px;
            text-align: center;
            width: 25%;
        }

        .list_pic a,
        .list_pic img {
            display: block;
            margin: 0 auto;
            width: 75px;
        }

        .list_pic img {
            margin: 0 0 5px;
        }

        .list_pic a,
        .list_txt a {
            color: #00c;
            font-size: 13px;
            line-height: 1.54;
            text-decoration: underline;
        }

        .list_pic span {
            color: #888;
            display: block;
            font-size: 13px;
            margin: 0 auto;
            width: 75px;
        ;
        }

        .list_txt {
            width: 100%;
        }

        .list_txt p {
            padding: 10px 0 28px;
        }

        .list1 li {
            border-bottom: 1px solid #f3f3f3;
            line-height: 1.54;
            padding: 6.5px 0;
            position: relative;
        }

        .list1 li:first-child {
            padding: 0;
        }

        .list1 li:first-child span {
            background: #fafafa;
            display: block;
            float: left;
            font-size: 12px;
            padding: 5px 0;
            width: 50%;
        }

        .list1 li:first-child span:last-child {
            text-align: right;
        }

        .star span {
            background: url('img/9.png') no-repeat;
            background-position: -312px -144px;
            height: 14px;
            overflow: hidden;
            position: absolute;
            right: 0;
            top: 13px;
            width: 60px;
        }

        .star span i {
            display: block;
            background: url('img/9.png') no-repeat;
            background-position: -240px -168px;
            height: 14px;
        }

        .star span::before footer {
            background: #f5f6f5;
            border-top: 1px solid #ebebeb;
            color: #666;
            height: 42px;
            line-height: 42px;
            margin: 40px 0 0;
            padding: 0 0 0 120px;
        }

        .list {
            width: 100%;
        }

        .list dt {
            color: #00c;
            font-size: medium;
            font-weight: 400;
            max-height: 120px;
            line-height: 1.54;
            text-decoration: underline;
        }

        .list dt strong {
            color: #c00;
            font-weight: 400;
        }

        .list img {
            float: left;
            margin: 0 18px 0 0;
            width: 120px;
        }

        .list dd {
            margin-bottom: 20px;
            overflow: hidden;
            zoom: 1;
        }

        .list dd p {
            font-size: 13px;
            line-height: 1.54;
        }

        .list dd a {
            color: #666;
            margin: 0 8px 0 0;
            text-decoration: underline;
        }

        .list dd .green {
            color: green;
        }

        .list dd a span {
            background: url('img/11.png') no-repeat 0 0;
            background-position: -744px -144px;
            display: inline-block;
            height: 14px;
            left: 1px;
            position: relative;
            top: 3px;
            width: 14px;
        }

        .layer {
            padding: 15px 0;
        }

        .layer li,
        .layer li a {
            display: inline-block;
            height: 34px;
            line-height: 34px;
            text-align: center;
            width: 34px;
        }

        .layer li {
            margin: 0 5px 0 0;
        }

        .layer li:last-child,
        .layer li:last-child a {
            margin: 0;
            width: 88px;
        }

        .layer a {
            border: 1px #d2d2d2 solid;
            color: #00c;
            font-size: 14px;
        }

        .layer .active a {
            border: none;
            color: #666;
            font-weight: bold;
        }

        .time {
            background: -webkit-linear-gradient(top, #0e6fc3 0%, #6baae1 100%);
            box-sizing: border-box;
            color: #fff;
            height: 100px;
            letter-spacing: 1px;
            margin: 0 0 8px;
            padding: 4px 0 18px 120px;
            position: relative;
            width: 538px;
        }

        .times {
            float: left;
            margin: 8px 0 0;
        }

        .days {
            float: right;
            padding: 0 35px 0 0;
        }

        #hour {
            font-size: 65px;
        }

        #sec {
            font-size: 30px;
            padding: 0 0 0 10px;
        }

        #week {
            display: block;
            font-size: 20px;
            margin: 22px 0 0;
        }

        #day {
            font-size: 16px;
        }

        #canvas {
            left: 190px;
            position: absolute;
            top: 90px;
            zoom: 0.14;
        }

        footer {
            background: #f5f6f5;
            border-top: 1px solid #ebebeb;
            box-sizing: border-box;
            height: 42px;
            line-height: 42px;
            padding: 0 0 0 120px;
        }

        footer li {
            display: inline-block;
            padding: 0 15px;
        }

        footer a {
            color: #777;
        }

        .red {
            color: #c00;
        }

        .relativity a {
            color: -webkit-link;
            display: inline-block;
            height: 28px;
            line-height: 26px;
            text-decoration: underline;
            width: 32%;
        }

        .v {
            background: url('img/9.png') no-repeat;
            background-position: -888px -192px;
            display: inline-block;
            height: 14px;
            margin: 0 8px 0 0;
            position: relative;
            top: 2px;
            width: 19px;
        }

        .recommend {
            border-bottom: 1px #f3f3f3 solid;
            margin: 0 0 18px;
            padding: 0 0 5px;
        }

        .r_ico {
            background: url('img/9.png') no-repeat;
            background-position: 0 -216px;
            display: inline-block;
            height: 18px;
            margin: 0 8px 0 0;
            position: relative;
            top: 4px;
            width: 18px;
        }

        .recommend a {
            color: -webkit-link;
            display: inline-block;
            margin: 0 18px 0 0;
            text-decoration: underline;
        }

        .top span {
            font-size: 13px;
            position: absolute;
            right: 0;
        }

        .top li:first-child span {
            position: static;
        }

        .top em,
        .top i {
            display: inline-block;
            height: 14px;
            position: relative;
            width: 14px;
        }

        .top em {
            background: #8eb9f5;
            color: #fff;
            font-style: normal;
            font-size: 12px;
            margin: 0 8px 0 0;
            padding: 1px 1px 4px;
            top: -1px;
            text-align: center;
        }

        .top li:nth-child(2) em {
            background: #f54545;
        }

        .top li:nth-child(3) em,
        .top li:nth-child(4) em {
            background: #ff8547;
        }

        .up {
            background: url('img/9.png') no-repeat;
            background-position: -720px -168px;
        }

        .down {
            background: url('img/9.png') no-repeat;
            background-position: -744px -168px;
        }
    </style>
    <script type="text/javascript">
        var weekday = ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"];
        var today = new Date({{$year}}, {{$month}}, {{$day}}, {{$hour}}, {{$minute}}, {{$second}})
    </script>
</head>

<body onload="startTime()">
<nav class="clr">
    <h1>
        <a href="#">
            <img src="http://alicdn.epg.huan.tv/project/tmp/180523/12.gif" alt/>
        </a>
    </h1>
    <div class="src">
        <input type="text" class="srcs" value="{{ $wd }}" />
        <span></span>
        <span></span>
        <input type="button" value="百度一下" class="srcb" />
    </div>
    <ul class="t_list">
        <li>
            <a href="#">百度首页</a>
        </li>

        <li>
            <a href="#">设置<span></span></a>
        </li>
        <li>
            <a href="#">登录</a>
        </li>
    </ul>
</nav>

<ul class="s_tab clr">
    <li>
        <a href="#" class="active">网页</a>
    </li>
    <li>
        <a href="#">新闻</a>
    </li>
    <li>
        <a href="#">贴吧</a>
    </li>
    <li>
        <a href="#">知道</a>
    </li>
    <li>
        <a href="#">音乐</a>
    </li>
    <li>
        <a href="#">图片</a>
    </li>
    <li>
        <a href="#">视频</a>
    </li>
    <li>
        <a href="#">地图</a>
    </li>
    <li>
        <a href="#">文库</a>
    </li>
    <li>
        <a href="#">更多»</a>
    </li>
</ul>

<p class="result">百度为您找到相关结果约24,500,000个<span>搜索工具</span></p>

<div class="content clr">
    <div class="l">
        <p class="recommend"><span class="r_ico"></span>为您推荐：<a href="#">北京时间表盘</a><a href="#">北京时间校准显示器</a><a href="#">北京时间校准秒钟在线</a></p>
        <dl class="list">
            <dt><strong>北京时间</strong> - 国家授时中心标准<strong>时间</strong></dt>
            <dd>
                <div class="time">
                    <canvas id="canvas" width="500" height="500"></canvas>
                    <div class="times">
                        <span id="hour">16:57</span>
                        <span id="sec">50</span>
                    </div>
                    <div class="days">
                        <span id="week">星期</span>
                        <span id="day">2018年5月20日</span>
                    </div>
                </div>
                <a href="#" class="green">open.baidu.com/<span></span></a>
            </dd>
        </dl>

        <dl class="list">
            <dt><strong>北京时间</strong></dt>
            <dd>
                <img src="https://ss2.baidu.com/6ONYsjip0QIZ8tyhnq/it/u=643393115,2031651768&fm=58&s=5EE48956C6908F92DAAEBFFF0300502D&bpow=121&bpoh=75" alt="" />
                <p><span class="red">北京时间</span>是中国新型主流媒体,拥有广电级视频采集制作能力和国内一流的调查记者队伍,首创云记者和云媒体理念,以移动互联网理念和方式重构新闻生产传播全链条,成为中国... </p>
                <a href="#" class="green">https://www.btime.com/<span></span></a>
                <em class="v"></em>
                <a href="#">百度快照</a>
                <a href="#">评价</a>
            </dd>
            <dt><strong>北京时间</strong>_百度百科</dt>
            <dd>
                <img src="https://ss2.baidu.com/6ONYsjip0QIZ8tyhnq/it/u=2573207177,4195795957&fm=58&bpow=235&bpoh=249" alt="" />
                <p><span class="red">北京时间</span>是中国采用国际时区东八时区的区时作为标准时间。<span class="red">北京时间</span>并不是<span class="red">北京</span>（东经116.4°）的地方时间，而是东经120°（东八区）的地方<span class="red">时间</span>，故东经120度地方时比<span class="red">北京</span>的地方时早约14分半钟。因为北京处于国际时区划分中的东八区，同格林...</p>
                <a href="#" class="green">baike.baidu.com/<span></span></a>
            </dd>
            <dt>现在<strong>北京时间</strong> 在线标准<strong>北京时间</strong>校对</dt>
            <dd>
                <img src="https://ss2.baidu.com/6ONYsjip0QIZ8tyhnq/it/u=958554933,2550383490&fm=58&s=C9A615721196EDEB5EF5B9C6000080B1" alt="" />
                <p>久久<span class="red">时间</span>网为您提供现在<span class="red">北京时间</span>、在线闹钟、标准时间校对软件、桌面记事日历软件、网络记事本。网络记事本功能含记事日历、备忘页、网址收藏、记账本等。还提供一些... </p>
                <a href="#" class="green">www.beijing-time.org/<span></span></a>
                <a href="#">百度快照</a>
            </dd>
            <dt><strong>北京时间</strong>-娱乐-高清视频-爱奇艺</dt>
            <dd>
                <p><span class="red">北京时间</span>是中国新型主流媒体,拥有广电级视频采集制作能力和国内一流的调查记者队伍,首创云记者和云媒体理念,以移动互联网理念和方式重构新闻生产传播全链条,成为中国...</p>
                <a href="#" class="green">www.iqiyi.com/w_19rt6gra..<span></span></a>
                <a href="#">百度快照</a>
            </dd>
            <dt><strong>北京时间</strong>_世界时间</dt>
            <dd>
                <p><span class="red">北京时间</span>是中国新型主流媒体,拥有广电级视频采集制作能力和国内一流的调查记者队伍,首创云记者和云媒体理念,以移动互联网理念和方式重构新闻生产传播全链条,成为中国... </p>
                <a href="#" class="green">https://time.supfree.net/<span></span></a>
                <a href="#">百度快照</a>
            </dd>
            <dt><strong>北京时间</strong>_世界时间</dt>
            <dd>
                <img src="https://ss2.baidu.com/6ONYsjip0QIZ8tyhnq/it/u=218069438,1034853075&fm=58&s=7CB7A71E9FB06C8056FDEDC40000B033" alt="" />
                <p><span class="red">北京时间</span>,<span class="red">时间</span>,计时,现在几点,现在是什么<span class="red">时间</span>,时差,时差对照表,与<span class="red">北京时间</span>对照,世界<span class="red">时间</span>,什么时候,时区,计时,计时方法,旅游<span class="red">时间</span>,留学<span class="red">时间</span>,
                    <span class="red">时间</span>校对,<span class="red">时间</span>校正,在线... </p>
                <a href="#" class="green">https://time.supfree.net/<span></span></a>
                <a href="#">百度快照</a>
            </dd>
        </dl>

        <div class="relativity">
            <h6 class="t">相关搜索</h6>
            <p>
                <a href="#">北京时间网上时钟</a>
                <a href="#">北京时间校准显示</a>
                <a href="#">北京时间校准秒钟在线</a>
                <a href="#">时间校准服务器</a>
                <a href="#">时间换算器</a>
                <a href="#">锻炼身体的最佳时间</a>
                <a href="#">机械表怎么调时间</a>
                <a href="#">北京时间校对</a>
                <a href="#">北京时间全球</a>
            </p>
        </div>

        <ul class="layer">
            <li class="active">
                <a href="#">1</a>
            </li>
            <li>
                <a href="#">2</a>
            </li>
            <li>
                <a href="#">3</a>
            </li>
            <li>
                <a href="#">4</a>
            </li>
            <li>
                <a href="#">5</a>
            </li>
            <li>
                <a href="#">6</a>
            </li>
            <li>
                <a href="#">7</a>
            </li>
            <li>
                <a href="#">8</a>
            </li>
            <li>
                <a href="#">9</a>
            </li>
            <li>
                <a href="#">10</a>
            </li>
            <li>
                <a href="#">下一页</a>
            </li>
        </ul>
    </div>
    <div class="r">
        <div class="list_pic">
            <h6 class="t">其他人还搜</h6>
            <ul class="list_pics clr">
                <li>
                    <a href="#"><img src="http://alicdn.epg.huan.tv/project/tmp/180523/1.jpeg" alt="">时区</a><span>区域使用同时间定义</span>
                </li>
                <li>
                    <a href="#"><img src="http://alicdn.epg.huan.tv/project/tmp/180523/2.jpeg" alt="">美国时间</a><span>美国本土的时间</span>
                </li>
                <li>
                    <a href="#"><img src="http://alicdn.epg.huan.tv/project/tmp/180523/3.jpeg" alt="">北京时间校准</a><span>与北京时间同步</span>
                </li>
                <li>
                    <a href="#"><img src="http://alicdn.epg.huan.tv/project/tmp/180523/4.jpeg" alt="">北京时间校准器</a><span>时间校准软件</span>
                </li>
                <li>
                    <a href="#"><img src="http://alicdn.epg.huan.tv/project/tmp/180523/5.jpeg" alt="">时区图</a><span>世界大洋大陆时区划分</span>
                </li>
                <li>
                    <a href="#"><img src="http://alicdn.epg.huan.tv/project/tmp/180523/6.jpeg" alt="">时差</a><span>两地区地方时之间差别</span>
                </li>
                <li>
                    <a href="#"><img src="http://alicdn.epg.huan.tv/project/tmp/180523/7.jpeg" alt="">地方时</a><span>太阳位置所确定的时刻</span>
                </li>
                <li>
                    <a href="#"><img src="http://alicdn.epg.huan.tv/project/tmp/180523/8.jpeg" alt="">夏令时</a><span>日光节约时制</span>
                </li>
            </ul>
        </div>
        <div class="list_txt">
            <h6 class="t">关于北京时间，网友正在热搜</h6>
            <ul class="list1">
                <li class="clr">
                    <span>关注点</span>
                    <span>关注热度</span>
                </li>
                <li class="star">
                    <a href="#">北京现在几点</a>
                    <span class="x1"><i style="width: 100%;"></i></span>
                </li>
                <li class="star">
                    <a href="#">北京时间开启新时代直播</a>
                    <span class="x2"><i style="width: 80%;"></i></span>
                </li>
                <li class="star">
                    <a href="#">北京时间联手各区融媒体</a>
                    <span class="x3"><i style="width: 50%;"></i></span>
                </li>
                <li class="star">
                    <a href="#">北京时间到底是哪里的地方时</a>
                    <span class="x4"><i style="width: 30%;"></i></span>
                </li>
                <li class="star">
                    <a href="#">北京时间与旧金山时间换算</a>
                    <span class="x4"><i style="width: 15%;"></i></span>
                </li>
            </ul>
            <p>以上内容系根据网友搜索自动排序生成</p>
        </div>
        <div class="hot">
            <h6 class="t">搜索热点<span class="more"><i></i><a href="#" class="active"></a><a href="#"></a><a href="#"></a><b></b></span></h6>
            <ul class="list1 top">
                <li class="clr">
                    <span>排名</span>
                    <span>搜索指数</span>
                </li>
                <li>
                    <a href="#"><em>1</em>情侣遭敲门威胁</a>
                    <span>451016<i class="up"></i></span>
                </li>
                <li>
                    <a href="#"><em>2</em>重庆面馆天价面条</a>
                    <span>400221<i class="up"></i></span>
                </li>
                <li>
                    <a href="#"><em>3</em>教唆学员酒后驾车</a>
                    <span>397233<i class="up"></i></span>
                </li>
                <li>
                    <a href="#"><em>4</em>一学习就流鼻血</a>
                    <span>394245<i class="down"></i></span>
                </li>
                <li>
                    <a href="#"><em>5</em>故宫全年周一闭馆</a>
                    <span>383470<i class="down"></i></span>
                </li>
                <li>
                    <a href="#"><em>6</em>暴漫创始陵园道歉</a>
                    <span>372605<i class="down"></i></span>
                </li>
                <li>
                    <a href="#"><em>7</em>中国新型磁浮列车</a>
                    <span>362102<i class="down"></i></span>
                </li>
                <li>
                    <a href="#"><em>8</em>小伙成狮面人</a>
                    <span>351599<i class="down"></i></span>
                </li>
                <li>
                    <a href="#"><em>9</em>尤杯中国3-1丹麦</a>
                    <span>349154<i class="down"></i></span>
                </li>
                <li>
                    <a href="#"><em>10</em>网约车入考核体系</a>
                    <span>346800<i class="down"></i></span>
                </li>
            </ul>
        </div>
    </div>
</div>

<footer>
    <ul>
        <li>
            <a href="#">帮助</a>
        </li>
        <li>
            <a href="#">举报</a>
        </li>
        <li>
            <a href="#">用户反馈</a>
        </li>
    </ul>
</footer>
<script src="http://alicdn.epg.huan.tv/public/js/jquery.js"></script>
<script type="text/javascript">

    function startTime() {
        today.dateAdd("s", 1);
        var h = today.getHours();
        var m = today.getMinutes();
        var s = today.getSeconds();
        document.getElementById('hour').innerHTML = h + ":" + checkTime(m);
        document.getElementById('sec').innerHTML = checkTime(s);
        setTimeout('startTime()', 1000);
    }

    function checkTime(i) {
        if (i < 10) {
            i = "0" + i
        }
        return "" + i
    }


    /*clock*/
    // inner variables
    var canvas, ctx;
    var clockRadius = 250;
    var clockImage;

    // draw functions :
    function clear() { // clear canvas function
        ctx.clearRect(0, 0, ctx.canvas.width, ctx.canvas.height);
    }

    function drawScene() {
        clear(); // clear canvas

        // get current time
        var hours = today.getHours();
        var minutes = today.getMinutes();
        var seconds = today.getSeconds();
        hours = hours > 12 ? hours - 12 : hours;
        var hour = hours + minutes / 60;
        var minute = minutes + seconds / 60;

        ctx.save();

        ctx.drawImage(clockImage, 0, 0, 500, 500);
        ctx.translate(canvas.width / 2, canvas.height / 2);
        ctx.beginPath();

        ctx.font = '36px Arial';
        ctx.fillStyle = '#fff';
        ctx.textAlign = 'center';
        ctx.textBaseline = 'middle';
        for (var n = 1; n <= 12; n++) {
            var theta = (n - 3) * (Math.PI * 2) / 12;
            var x = clockRadius * 0.7 * Math.cos(theta);
            var y = clockRadius * 0.7 * Math.sin(theta);
            ctx.fillText(n, x, y);
        }

        // draw hour
        ctx.save();
        var theta = (hour - 3) * 2 * Math.PI / 12;
        ctx.rotate(theta);
        ctx.beginPath();
        ctx.moveTo(-15, -5);
        ctx.lineTo(-15, 5);
        ctx.lineTo(clockRadius * 0.5, 1);
        ctx.lineTo(clockRadius * 0.5, -1);
        ctx.fill();
        ctx.restore();

        // draw minute
        ctx.save();
        var theta = (minute - 15) * 2 * Math.PI / 60;
        ctx.rotate(theta);
        ctx.beginPath();
        ctx.moveTo(-15, -4);
        ctx.lineTo(-15, 4);
        ctx.lineTo(clockRadius * 0.8, 1);
        ctx.lineTo(clockRadius * 0.8, -1);
        ctx.fill();
        ctx.restore();

        // draw second
        ctx.save();
        var theta = (seconds - 15) * 2 * Math.PI / 60;
        ctx.rotate(theta);
        ctx.beginPath();
        ctx.moveTo(-15, -3);
        ctx.lineTo(-15, 3);
        ctx.lineTo(clockRadius * 0.9, 1);
        ctx.lineTo(clockRadius * 0.9, -1);
        ctx.fillStyle = '#f00';
        ctx.fill();
        ctx.restore();

        ctx.restore();
    }

    // initialization
    $(function() {

        document.getElementById('week').innerText = weekday[today.getDay()];
        year = today.getFullYear() + "年";
        moon = today.getMonth() + 1 + "月";
        day = today.getDate() + "日";
        document.getElementById('day').innerText = year + moon + day;

        canvas = document.getElementById('canvas');
        ctx = canvas.getContext('2d');

        // var width = canvas.width;
        // var height = canvas.height;

        clockImage = new Image();
        clockImage.src = 'http://alicdn.epg.huan.tv/project/tmp/180523/10.png';

        setInterval(drawScene, 1000); // loop drawScene
    });

    Date.prototype.dateAdd = function(interval,number)
    {
        var d = this;
        var k={'y':'FullYear', 'q':'Month', 'm':'Month', 'w':'Date', 'd':'Date', 'h':'Hours', 'n':'Minutes', 's':'Seconds', 'ms':'MilliSeconds'};
        var n={'q':3, 'w':7};
        eval('d.set'+k[interval]+'(d.get'+k[interval]+'()+'+((n[interval]||1)*number)+')');
        return d;
    }
</script>
</body>

</html>